<?php

/**
* 文章内用的获取
*/

class ModelGetInformation extends GetLoad
{



	public function GetInformation($information_id){
			
	
			 $information = $this->SQLquery("SELECT * FROM information WHERE information_id=".$information_id.";");


			 return $information[0];

	}

	


	public function GetNamesInformation($name_id){

			 $information = $this->SQLquery("SELECT * FROM information WHERE name_id=".$name_id.";");

			return $information;
			 

	}

	public function GetName($name_id){
			


			 $information = $this->SQLquery("SELECT * FROM name WHERE name_id=".$name_id.";");

			 return $information[0];

	}


	public function Getdianzan($information_id){
			


			 $dianzan = $this->SQLquery2("SELECT * FROM dianzan WHERE information_id='".$information_id."';");
			

			 return $dianzan->num_rows;

	}



}

